/**
 * Copyright (C)  Gadglet .
 *
 * This file is part of Gadglet
 *
 * Gadglet is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Gadglet is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with Gadglet. If not, see <http://www.gnu.org/licenses/>.
 */

package com.gadglet.gadgets.personalNotes.server;

import javax.jdo.annotations.Inheritance;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

import com.gadglet.core.GadgletRequestWrapper;
import com.gadglet.data.PersonalShareableContentItem;
import com.gadglet.data.utils.ContentItemHelper;
/**
 * Persistence class for the Gadget. 
 * extending PersonalShareableContentItem enables to use ready made persistence methods
 * provided by ContentItemHelper
 * 
 * @see PersonalShareableContentItem
 * @see ContentItemHelper
 */

@PersistenceCapable
@Inheritance(customStrategy = "complete-table")
public class PersonalNotesData extends PersonalShareableContentItem {
	
	 @Persistent
	 private String personalNotesMessage;
	 
	 private int  priority;
	
	 
	 public int getPriority() {
		return priority;
	}

	public PersonalNotesData(String noteMessage, int priority ,GadgletRequestWrapper request)
	 {
		 super(request);
		 this.personalNotesMessage = noteMessage;
		 this.priority = priority;
	 }

	public String getPersonalNotesMessage() {
		return personalNotesMessage;
	}

	public void setPersonalNotesMessage(String personalNotesMessage) {
		this.personalNotesMessage = personalNotesMessage;
	}
	 
	 
	 
}
